﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace Windvoice.Blog
{
    [ActiveRecord("Friend")]
    public partial class Friend : ActiveRecordBase<Friend>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }

        [Display(Name="头像")]
        [Property]
        public string Portrait
        {
            get;
            set;
        }

        [Required]
        [Display(Name = "头衔")]
        [Property]
        public string Name
        {
            get;
            set;
        }

        [Property]
        public string Priority
        {
            get;
            set;
        }

        [Required]
        [Display(Name = "链接地址")]
        [Property]
        public string LinkUrl
        {
            get;
            set;
        }
    }
}
